import request from '@/utils/request'

// 查询日志信息列表
export function listRecord(query) {
    return request({
        url: '/kettle/record/list',
        method: 'get',
        params: query
    })
}

// 查询日志信息详细
export function getRecord(id) {
    return request({
        url: '/kettle/record/' + id,
        method: 'get'
    })
}

// 新增日志信息
export function addRecord(data) {
    return request({
        url: '/kettle/record',
        method: 'post',
        data: data
    })
}

// 修改日志信息
export function updateRecord(data) {
    return request({
        url: '/kettle/record',
        method: 'put',
        data: data
    })
}

// 删除日志信息
export function delRecord(id) {
    return request({
        url: '/kettle/record/' + id,
        method: 'delete'
    })
}

// 清空日志信息
export function handleClean() {
  return request({
    url: '/kettle/record/handleClean',
    method: 'get'
  })
}
